import request from '@/utils/request';

export async function getInspectStandardByPage(params: any) {
  return request('/api/device/getInspectStandardByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addInspectStandard(params: any) {
  return request('/api/device/addInspectStandard', {
    method: 'POST',
    data: params,
  });
}

export async function updateInspectStandard(params: any) {
  return request('/api/device/updateInspectStandard', {
    method: 'POST',
    data: params,
  });
}

export async function delInspectStandard(params: any) {
  return request('/api/device/delInspectStandard', {
    method: 'POST',
    data: params,
  });
}

export async function exportInspectStandard(params: any) {
  return request('/api/device/exportInspectStandard', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}

export async function getTemplateIdlist(params: any) {
  return request('/api/device/getTemplateIdlist', {
    method: 'POST',
    data: params,
  });
}
export default {
  getInspectStandardByPage,
  addInspectStandard,
  updateInspectStandard,
  delInspectStandard,
  exportInspectStandard,
  getTemplateIdlist,
};
